<?php

/**
 * Evenement form.
 *
 * @package    tfe
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class EvenementForm extends BaseEvenementForm
{
  public function configure()
  {
      unset($this['created_at'], $this['updated_at'], $this['deleted_at']);

      $dateWidget = new sfWidgetFormI18nDate(array(
        'format' => '%day%/%month%/%year%',
        'culture'=>'fr'
        ));
      $this->widgetSchema['date'] = new sfWidgetFormJqueryDate(array(
          'date_widget' => $dateWidget,
         'culture'=>'fr_FR'
        ));

      $this->widgetSchema['type'] = new sfWidgetFormChoice(array('choices' => array('location'=>'location','spectacle'=>'spectacle','atelier'=>'atelier','stage'=>'stage')));
  }

}
